package org.thanos.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

import java.util.Collections;
import java.util.Map;
import java.util.UUID;

@RestController
public class DemoController {

    @GetMapping(value = "/test")
    public Mono<Object> requestList() {
        return Mono.justOrEmpty(Collections.singletonMap("id", UUID.randomUUID().toString()));
    }
}
